package com.test11.yaml.test01;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.ArrayUtils;
import org.ho.yaml.Yaml;
import org.junit.Test;
/*
 * 封装到map集合中
 */
@SuppressWarnings("all")
public class YamlTest01 {
	public static void main(String[] args) throws Exception {
		InputStream resourceAsStream = YamlTest01.class.getClassLoader().getResourceAsStream("com/test11/yaml/test01/test01.yml");
		Map father = Yaml.loadType(resourceAsStream, HashMap.class);
		for (Object key : father.keySet()) {
			System.out.println(key + ":\t" + father.get(key).toString());
		}
	}
}
